<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>控制面板</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <link rel="stylesheet" type="text/css"
			href="./styles/control_panel.css">
	<link rel="stylesheet" type="text/css" href="./styles/sysTable.css"/>
	<script src="./javaScripts/jquery-1.5.1.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="./javaScripts/sysTable.js"></script>
	<script type="text/javascript">
	function show(inputValueFlag, currentValue) {
	var div1 = document.getElementById(inputValueFlag);
	var subTable;
	if(inputValueFlag == "techView"){
		subTable =  "<table width='100%' cellpadding='0' cellspacing='0' border='0'><tr><td width='30%' align='center'>指标实战交流区</td><td width='20%' align='center'><input type='checkbox' name='#tbBbsSubscribe.techIndtFlag'></td><td width='30%' align='center'>K线/切线/形态分析区</td><td width='20%' align='center'><input type='checkbox' name='#tbBbsSubscribe.techLineFlag'></td></tr><tr><td width='30%' align='center'>波浪理论讨论区</td><td width='20%' align='center'><input type='checkbox' name='#tbBbsSubscribe.techWaveFlag'></td><td width='30%'>&nbsp;</td><td width='20%'>&nbsp;</td></tr></table>"  ;
		
	}else if(inputValueFlag == "basicView"){
		subTable =  "<table width='100%' cellpadding='0' cellspacing='0' border='0'><tr><td width='70%' align='center'>价值理念大家谈</td><td width='30%' align='center'><input type='checkbox' name='#tbBbsSubscribe.basicValuesFlag'>	</td></tr><tr><td width='70%' align='center'>论坛--基本面分析交流区--行业与公司分析研究</td><td width='30%' align='center'><input type='checkbox' name='#tbBbsSubscribe.basicCompanyFlag'>	</td></tr><tr><td width='70%' align='center'>论坛--基本面分析交流区--宏观经济交流讨论</td><td width='30%' align='center'><input type='checkbox' name='#tbBbsSubscribe.basicMacroFlag'>	</td></tr><tr><td width='70%' align='center'>论坛--基本面分析交流区--机构研究报告交流区</td><td width='30%' align='center'><input type='checkbox' name='#tbBbsSubscribe.basicResearchFlag'></td></tr></table>" ;
	}else if(inputValueFlag == "booksView"){
		subTable =  "<table width='100%' cellpadding='0' cellspacing='0' border='0'><tr><td width='70%' align='center'>论坛--书籍下载区--书籍推介及下载</td><td width='30%' align='center'><input type='checkbox' name='#tbBbsSubscribe.booksFlag'>	</td></tr></table>"  ;
	}else if(inputValueFlag == "ssmView"){
		subTable =  "<table width='100%' cellpadding='0' cellspacing='0' border='0'><tr><td width='70%' align='center'>论坛--站务区--新手入门</td><td width='30%' align='center'><input type='checkbox' name='#tbBbsSubscribe.ssmRookieFlag'>	</td></tr><tr><td width='70%' align='center'>论坛--站务区--投诉建议</td><td width='30%' align='center'><input type='checkbox' name='#tbBbsSubscribe.ssmComplaintFlag'></td></tr></table>"  ;
	}
	if (currentValue == true) {
		div1.innerHTML = subTable;
	} else if (currentValue == false) {
		alert(currentValue);
		div1.innerHTML = "";
	}
	}
	
	</script>
  </head>
  <body>
       <div id="containe">
      	<div class="control_con_right_002">
             <div class="control_con_right_0021">
				<table width="100%" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td align="left" class="tb_left" valign="middle" colspan="3">
							我的订阅
						</td>				
					</tr>				
				</table>
			</div>
		<div class="control_con_right_0022">
			<div class="control_con_right_00221">
				<table border="0" cellpadding="0" cellspacing="0" width="100%"
					align="center" style="color: #1E5B77;" class="tb_msg">
					<tr>
						<td width="30%" align="center">
							订阅内容
						</td>
						<td width="20%" align="center">
							是否已订阅
						</td>
						<td width="30%" align="center">
							订阅内容
						</td>
						<td width="20%" align="center">
							是否已订阅
						</td>
					</tr>
				</table>
			</div>
		</div>	
		<div class="control_con_right_0021">
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td align="left" class="tb_left" valign="middle" colspan="3">
						分析模块
					</td>				
				</tr>				
			</table>
		</div>
		<div>
			<table border="0" cellpadding="0" cellspacing="0" width="100%"
			align="center" id="tb_msg_">
				<tr>
					<td width="30%" align="center">个股分析模块</td>
					<td width="20%" align="center">
						<input type="checkbox" name="#tbBbsSubscribe.stockFlag">	
					 </td>
					<td width="30%" align="center">财务分析模块</td>
					<td width="20%" align="center">
						<input type="checkbox" name="#tbBbsSubscribe.financeFlag">	
					 </td>
				</tr>
				<tr>
					<td width="30%" align="center">股价分析模块</td>
					<td width="20%" align="center">
						<input type="checkbox" name="#tbBbsSubscribe.priceFlag">	
					 </td>
					<td width="30%" align="center">市盈率分析模块</td>
					<td width="20%" align="center">
						<input type="checkbox" name="#tbBbsSubscribe.peFlag">	
					 </td>
				</tr>
			</table>
		</div>
		<div class="control_con_right_0021">
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td align="left" class="tb_left" valign="middle" colspan="3">
						论坛模块
					</td>				
				</tr>				
			</table>
		</div>
		<div>
			<table border="0" cellpadding="0" cellspacing="0" width="100%"
			align="center" id="tb_msg_">
			<tr>
				<td width="30%" align="center">技术分析交流区</td>
				<td width="20%" align="center">
					<input type="checkbox" name="techFlag" onclick="show('techView',this.checked)" >	
				 </td>
				 <td width="30%">&nbsp; </td><td width="20%">&nbsp;</td>
			</tr>
			<tr><td colspan="4"><div id="techView"></div> </td> </tr>
			<tr >
				<td width="30%" align="center">基本面分析交流区</td>
				<td width="20%" align="center">
					<input type="checkbox" name="basicFlag" onclick="show('basicView',this.checked)">	
				 </td>
				 <td width="30%">&nbsp;</td><td width="20%">&nbsp;</td>
			</tr>
			<tr >
				<td colspan="4"><div id="basicView"></div>  </td>				
			</tr>
			<tr>
				<td width="30%" align="center">书籍下载区</td>
				<td width="20%" align="center">
					<input type="checkbox" name="booksFlag" onclick="show('booksView',this.checked)">	
				 </td>
				 <td width="30%">&nbsp;</td><td width="20%">&nbsp;</td>
			</tr>
			<tr >
				<td colspan="4"><div id="booksView"></div>  </td>				
			</tr>
			<tr >
				<td width="30%" align="center">站务区</td>
				<td width="20%" align="center">
					<input type="checkbox" name="ssmFlag" onclick="show('ssmView',this.checked)">	
				 </td>
				 <td width="30%">&nbsp;</td><td width="20%">&nbsp;</td>
			</tr>
			<tr >
				<td colspan="4"><div id="ssmView" ></div>  </td>				
			</tr>
		</table>
	</div>
	</div>	
   </div>
  </body>
</html>
